Skip to content

Instantly share code, notes, and snippets.

@lucasquin
lucasquin / solution.md
Last active November 4, 2026 12:54
The Aula F75 keyboard function keys (F1-F12) don't work properly in Linux because the keyboard is incorrectly detected as an "Apple Aluminium Keyboard (ANSI)" instead of a generic keyboard.

Keyboard Function Keys Fix in Linux (Debian/Arch)

Problem Description

Some keyboards (like Aula F75 and Apple keyboards) have function keys (F1-F12) that don't work properly in Linux because they're incorrectly detected or configured to prioritize media keys over standard function keys.

Symptoms

  • Function keys (F1, F2, F3, etc.) don't respond or trigger media functions instead
  • Keys work as media controls (volume, brightness) by default instead of F1-F12
  • hwinfo --keyboard may show the device as "Apple Aluminium Keyboard (ANSI)" even for non-Apple keyboards
@quepasaeltoro
quepasaeltoro / CurseForge-NoAds.md
Created October 17, 2026 07:39
Hide CurseForge ads from the launcher

CurseForge (no ads)

Starts the CurseForge desktop app for Windows with the ad panel on the right hidden. No CurseForge files are changed.

Install

  1. On this page, click Raw in the top right corner of the CurseForge-NoAds.ps1 box below.
  2. Press Ctrl+A to select all the text, then Ctrl+C to copy it.
  3. Open Notepad and press Ctrl+V to paste.
  4. Click File → Save as and:

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@DocteurSEO
DocteurSEO / 01-PROMPTS.md
Created September 29, 2026 13:37
Claude Sonnet 5.5 film: every prompt, the design bible, the per-scene briefs and the script

The prompts behind "I Made an 8-Minute Film with Claude Sonnet 5.5"

Honest answer to "what was your prompt?": there was no single prompt. It was a conversation between a director (Ahmed) and Claude Sonnet 5.5 in Claude Code, plus one repeated brief that Claude gave to sub-agents (one agent per scene). Both are here, word for word.

1. The director's messages (translated from French; the originals were in French)

  1. Sonnet 5.5 is out, I need a video. One approach is storytelling. Look at my video about Opus 5.5 on the YouTube channel Ahmed T'aide, it had a small success. Look at the comments and tell me which video I could make.

  2. OK, let's also look at the comments of this video: <a competitor's Sonnet 5.5 tutorial>

  3. Let's go with the one that answers every question. We do storytelling from ZERO frame. We do the same thing again, but this time we add humour, emotion, and above all the prompts and my working method. Start by writing the script, and we'll use ElevenLabs v4.

  4. > Let's directly m
@kaii-k
kaii-k / cpython-zop-chain.md
Created November 3, 2026 19:32
CPython dict ZOP chain: heap OOB read/write via dict-watcher reentrancy (python/cpython#154710)

CPython Dict ZOP Chain: Heap OOB Read/Write via Dict-Watcher Reentrancy

TL;DR: CPython's do_lookup in Objects/dictobject.c never checks that a dk_indices value is less than dk_nentries. Combined with a dict-watcher reentrancy bug in insert_combined_dict (python/cpython#154710), this enables an out-of-bounds heap write and read through CPython's core dict implementation. Confirmed on Python 3.13.12 with SIGSEGV.

This writeup applies the ZOP (Zend-Oriented Programming) technique — originally presented at BlackHat USA 2026 against PHP — to CPython's dict internals. The same "index forgery" principle works because CPython's compact dict uses an architecturally identical design: a small dk_indices[] array of integers indexing into a dense dk_entries[] array of {hash, key, value} structs.


Background: CPython's Compact Dict

@ciocan
ciocan / agentic-workflow.md
Created September 23, 2026 12:48
How I build software with coding agents

How I build software with coding agents

A write-up for a friend. This is the setup I have converged on after about a year of running Claude Code and Codex CLI on real products, some of them with the agents working for days at a time while I sleep. It is generic on purpose. Where I quote numbers they come from my own repos, measured on 2026-09-23.

The short version: one Linux box, a terminal multiplexer built for agents, a written contract per repo that tells the agent how work is done, and a loop of grill → issues → orchestrated build → adversarial verification → merge → docs. The agent

Mount VirtualBox VDI

@carpasse
carpasse / unhandled-rejections.test.mjs
Created November 4, 2026 12:20
The same try/catch leaks when both promises are created before the first await, even inside the try
import {test} from 'node:test';
import assert from 'node:assert/strict';
import {spawnSync} from 'node:child_process';
const runInFreshNode = (scenario) => {
const program = `
const fail = (message, ms = 5) => new Promise((_, reject) => setTimeout(() => reject(new Error(message)), ms));
const succeed = (value, ms = 5) => new Promise((resolve) => setTimeout(() => resolve(value), ms));
@stewartadam
stewartadam / !gh-pr-review-shortcut-userscript.md
Last active November 4, 2026 12:40
Add shortcuts for navigating GH PR diffs via Tampermonkey

GitHub PR Review Shortcuts

A Tampermonkey userscript for keyboard-first navigation through GitHub pull-request diffs.

Shortcuts

  • j: move to the next viewport-sized diff segment
  • k: move to the previous viewport-sized diff segment
  • v: toggle the selected file's Viewed state and advance to the next file
  • l: load the selected large diff when GitHub defers it